public class Double
{
    public static void main(String[] args)
    {
        double a=10.5;
        double b=2.5;

        boolean Less=(a<b);
        boolean Greater=(a>b);
        boolean LessOrEqual=(a<=b);
        boolean GreaterOrEqual=(a>=b);

        boolean Equal=(a==b);
        boolean notEqual=(a!=b);

        System.out.println(Less);
        System.out.println(Greater);
        System.out.println(LessOrEqual);
        System.out.println(GreaterOrEqual);
        System.out.println(Equal);
        System.out.println(notEqual);

        System.out.println("==========================");

        System.out.println(a+b);
        System.out.println(a-b);
        System.out.println(a*b);
        System.out.println(a/b);
        System.out.println(a%b);
        System.out.println(a++);
        System.out.println(++a);
        System.out.println(a--);
        System.out.println(--a);

        System.out.println("==========================");

        double max=(a>b)?a:b;
        System.out.println("最大值为："+max);

        System.out.println("===========================");

        double d = 10.5;
        int i = (int) d;

        System.out.println("转换后的整数值: " + i);

        System.out.println("============================");

        double pi = 3.14159;
        String message = "The value of pi is: " + pi;

        System.out.println(message);

        System.out.println("============================");

    }
}
